import request from '@/utils/request'

//获取pdf
export function getPDF(data) {
  return request({
    url: '/renovation/feasibilityStudy/getAuditFiles',
    method: 'post',
    formData: data
  })
}

//获取意见列表
export function getAdviceList(data) {
  return request({
    url: '/renovation/attachmentAuditAdvice/getAdviceList',
    method: 'post',
    formData: data
  })
}

//导出审核意见
export function getExport(data) {
  return request({
    url: '/renovation/attachmentAuditAdvice/export',
    method: 'post',
    responseType:'blob',
    formData: data
  })
}

//修改情况（单个）
export function changeAdviceOne(data) {
  return request({
    url: '/renovation/attachmentAuditAdvice/update',
    method: 'post',
    formData: data
  })
}

//删除审查意见
export function deleteAdviceOne(data) {
  return request({
    url: '/renovation/attachmentAuditAdvice/delete',
    method: 'post',
    formData: data
  })
}

//添加审查意见
export function addAdvice(data) {
  return request({
    url: '/renovation/attachmentAuditAdvice/save',
    method: 'post',
    json: data
  })
}

//修改情况（批量）
export function changeAdvice(data) {
  return request({
    url: '/renovation/attachmentAuditAdvice/batchUpdate',
    method: 'post',
    formData: data
  })
}